package com.iris.live.services.data.models;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by HangLiu on 2017/2/20.
 */
@Entity
@Table(name = "t_insurance_car_info", schema = "live", catalog = "")
public class TInsuranceCarInfoModel {
    private Integer carid;
    private String permit;
    private String sales;
    private String carnumber;
    private String cartype;
    private String brand;
    private String rank;
    private String model;
    private String modelshort;
    private String benz;
    private String usetype;
    private String enginenumber;
    private String checkdate;
    private String vin;
    private Integer peopleNo;
    private String weight;
    private String displacement;
    private String power;
    private String insName;
    private String insTel;
    private String sex;
    private String clientype;
    private String papersId;
    private String province;
    private String city;
    private String district;
    private String postcode;
    private String address;
    private String updateid;
    private Timestamp updatetime;

    @Id
    @Column(name = "carid")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getCarid() {
        return carid;
    }

    public void setCarid(Integer carid) {
        this.carid = carid;
    }

    @Basic
    @Column(name = "permit")
    public String getPermit() {
        return permit;
    }

    public void setPermit(String permit) {
        this.permit = permit;
    }

    @Basic
    @Column(name = "sales")
    public String getSales() {
        return sales;
    }

    public void setSales(String sales) {
        this.sales = sales;
    }

    @Basic
    @Column(name = "carnumber")
    public String getCarnumber() {
        return carnumber;
    }

    public void setCarnumber(String carnumber) {
        this.carnumber = carnumber;
    }

    @Basic
    @Column(name = "cartype")
    public String getCartype() {
        return cartype;
    }

    public void setCartype(String cartype) {
        this.cartype = cartype;
    }

    @Basic
    @Column(name = "brand")
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Basic
    @Column(name = "rank")
    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    @Basic
    @Column(name = "model")
    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    @Basic
    @Column(name = "modelshort")
    public String getModelshort() {
        return modelshort;
    }

    public void setModelshort(String modelshort) {
        this.modelshort = modelshort;
    }

    @Basic
    @Column(name = "benz")
    public String getBenz() {
        return benz;
    }

    public void setBenz(String benz) {
        this.benz = benz;
    }

    @Basic
    @Column(name = "usetype")
    public String getUsetype() {
        return usetype;
    }

    public void setUsetype(String usetype) {
        this.usetype = usetype;
    }

    @Basic
    @Column(name = "enginenumber")
    public String getEnginenumber() {
        return enginenumber;
    }

    public void setEnginenumber(String enginenumber) {
        this.enginenumber = enginenumber;
    }

    @Basic
    @Column(name = "checkdate")
    public String getCheckdate() {
        return checkdate;
    }

    public void setCheckdate(String checkdate) {
        this.checkdate = checkdate;
    }

    @Basic
    @Column(name = "VIN")
    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    @Basic
    @Column(name = "peopleNo")
    public Integer getPeopleNo() {
        return peopleNo;
    }

    public void setPeopleNo(Integer peopleNo) {
        this.peopleNo = peopleNo;
    }

    @Basic
    @Column(name = "weight")
    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    @Basic
    @Column(name = "displacement")
    public String getDisplacement() {
        return displacement;
    }

    public void setDisplacement(String displacement) {
        this.displacement = displacement;
    }

    @Basic
    @Column(name = "power")
    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    @Basic
    @Column(name = "insName")
    public String getInsName() {
        return insName;
    }

    public void setInsName(String insName) {
        this.insName = insName;
    }

    @Basic
    @Column(name = "insTel")
    public String getInsTel() {
        return insTel;
    }

    public void setInsTel(String insTel) {
        this.insTel = insTel;
    }

    @Basic
    @Column(name = "sex")
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Basic
    @Column(name = "clientype")
    public String getClientype() {
        return clientype;
    }

    public void setClientype(String clientype) {
        this.clientype = clientype;
    }

    @Basic
    @Column(name = "papersID")
    public String getPapersId() {
        return papersId;
    }

    public void setPapersId(String papersId) {
        this.papersId = papersId;
    }

    @Basic
    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "district")
    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    @Basic
    @Column(name = "postcode")
    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "updateid")
    public String getUpdateid() {
        return updateid;
    }

    public void setUpdateid(String updateid) {
        this.updateid = updateid;
    }

    @Basic
    @Column(name = "updatetime")
    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TInsuranceCarInfoModel that = (TInsuranceCarInfoModel) o;

        if (carid != null ? !carid.equals(that.carid) : that.carid != null) return false;
        if (permit != null ? !permit.equals(that.permit) : that.permit != null) return false;
        if (sales != null ? !sales.equals(that.sales) : that.sales != null) return false;
        if (carnumber != null ? !carnumber.equals(that.carnumber) : that.carnumber != null) return false;
        if (cartype != null ? !cartype.equals(that.cartype) : that.cartype != null) return false;
        if (brand != null ? !brand.equals(that.brand) : that.brand != null) return false;
        if (rank != null ? !rank.equals(that.rank) : that.rank != null) return false;
        if (model != null ? !model.equals(that.model) : that.model != null) return false;
        if (modelshort != null ? !modelshort.equals(that.modelshort) : that.modelshort != null) return false;
        if (benz != null ? !benz.equals(that.benz) : that.benz != null) return false;
        if (usetype != null ? !usetype.equals(that.usetype) : that.usetype != null) return false;
        if (enginenumber != null ? !enginenumber.equals(that.enginenumber) : that.enginenumber != null) return false;
        if (checkdate != null ? !checkdate.equals(that.checkdate) : that.checkdate != null) return false;
        if (vin != null ? !vin.equals(that.vin) : that.vin != null) return false;
        if (peopleNo != null ? !peopleNo.equals(that.peopleNo) : that.peopleNo != null) return false;
        if (weight != null ? !weight.equals(that.weight) : that.weight != null) return false;
        if (displacement != null ? !displacement.equals(that.displacement) : that.displacement != null) return false;
        if (power != null ? !power.equals(that.power) : that.power != null) return false;
        if (insName != null ? !insName.equals(that.insName) : that.insName != null) return false;
        if (insTel != null ? !insTel.equals(that.insTel) : that.insTel != null) return false;
        if (sex != null ? !sex.equals(that.sex) : that.sex != null) return false;
        if (clientype != null ? !clientype.equals(that.clientype) : that.clientype != null) return false;
        if (papersId != null ? !papersId.equals(that.papersId) : that.papersId != null) return false;
        if (province != null ? !province.equals(that.province) : that.province != null) return false;
        if (city != null ? !city.equals(that.city) : that.city != null) return false;
        if (district != null ? !district.equals(that.district) : that.district != null) return false;
        if (postcode != null ? !postcode.equals(that.postcode) : that.postcode != null) return false;
        if (address != null ? !address.equals(that.address) : that.address != null) return false;
        if (updateid != null ? !updateid.equals(that.updateid) : that.updateid != null) return false;
        if (updatetime != null ? !updatetime.equals(that.updatetime) : that.updatetime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = carid != null ? carid.hashCode() : 0;
        result = 31 * result + (permit != null ? permit.hashCode() : 0);
        result = 31 * result + (sales != null ? sales.hashCode() : 0);
        result = 31 * result + (carnumber != null ? carnumber.hashCode() : 0);
        result = 31 * result + (cartype != null ? cartype.hashCode() : 0);
        result = 31 * result + (brand != null ? brand.hashCode() : 0);
        result = 31 * result + (rank != null ? rank.hashCode() : 0);
        result = 31 * result + (model != null ? model.hashCode() : 0);
        result = 31 * result + (modelshort != null ? modelshort.hashCode() : 0);
        result = 31 * result + (benz != null ? benz.hashCode() : 0);
        result = 31 * result + (usetype != null ? usetype.hashCode() : 0);
        result = 31 * result + (enginenumber != null ? enginenumber.hashCode() : 0);
        result = 31 * result + (checkdate != null ? checkdate.hashCode() : 0);
        result = 31 * result + (vin != null ? vin.hashCode() : 0);
        result = 31 * result + (peopleNo != null ? peopleNo.hashCode() : 0);
        result = 31 * result + (weight != null ? weight.hashCode() : 0);
        result = 31 * result + (displacement != null ? displacement.hashCode() : 0);
        result = 31 * result + (power != null ? power.hashCode() : 0);
        result = 31 * result + (insName != null ? insName.hashCode() : 0);
        result = 31 * result + (insTel != null ? insTel.hashCode() : 0);
        result = 31 * result + (sex != null ? sex.hashCode() : 0);
        result = 31 * result + (clientype != null ? clientype.hashCode() : 0);
        result = 31 * result + (papersId != null ? papersId.hashCode() : 0);
        result = 31 * result + (province != null ? province.hashCode() : 0);
        result = 31 * result + (city != null ? city.hashCode() : 0);
        result = 31 * result + (district != null ? district.hashCode() : 0);
        result = 31 * result + (postcode != null ? postcode.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (updateid != null ? updateid.hashCode() : 0);
        result = 31 * result + (updatetime != null ? updatetime.hashCode() : 0);
        return result;
    }
}
